cmake_minimum_required(VERSION 3.24)
project(vcpkg_httplib)

set(CMAKE_CXX_STANDARD 20)

set(CMAKE_PREFIX_PATH  D:\\vcpkg\\vcpkg\\packages)
set(CPP_HTTPLIB_INCLUDE_DIRS  D:\\vcpkg\\vcpkg\\packages\\cpp-httplib_x64-windows)

find_package(OpenSSL REQUIRED)
find_path(CPP_HTTPLIB_INCLUDE_DIRS "httplib.h")

link_libraries(ws2_32)
add_executable(vcpkg_httplib main.cpp httplib.h)

target_link_libraries(vcpkg_httplib PRIVATE OpenSSL::SSL OpenSSL::Crypto)
target_include_directories(vcpkg_httplib PRIVATE ${CPP_HTTPLIB_INCLUDE_DIRS})